<?php slot('fb_meta') ?>
	<meta property = 'og:title' content = '<?php echo $site->getName(); ?>' />
	<meta property = 'og:type' content = 'website' />
	<meta property = 'og:url' content = 'http://www.mimercado.es/<?php echo $site->getSlug() ?>'/>
	<meta property = 'og:image' content = 'http://www.mimercado.es/images/logo.png' />
	<meta property = 'og:site_name' content = 'MiMercado.es' />
	<meta property = 'og:description' content = '<?php echo $site->getDescription() ?>' />
	<meta property = 'fb:app_id' content = '136003349748069' />
<?php end_slot(); ?>

<?php slot('custom_css') ?>
	<link href="<?php echo url_for('site/css?site_id='.$site->getId()) ?>" rel="stylesheet" type="text/css" />
<?php end_slot(); ?>

<div class="header">
	<?php if ($isSiteAdmin): ?>
		<div id="admin_actions">
			<?php echo link_to("Agregar artículo",'site/newArticle') ?>
		</div>
	<?php endif; ?>
	<?php if ($site->getLogo()): ?>
		<div id="site_logo"><?php echo image_tag($site->getLogoFileName()); ?></div>
	<?php else: ?>
		<h1 style="font-size: 40px;"><?php echo $site->getName(); ?></h1>
	<?php endif; ?>
	<div class="fb-ilike">
		<fb:like layout="standard" show_faces="true" width="300" action="like" colorscheme="light"></fb:like>
	</div>
</div>

<?php if($sf_user->hasFlash('error')):?>
    <?php include_partial('global/msg', array('class'=>'error', 'msg'=>$sf_user->getFlash('error'))); ?>
<?php endif;?>
<?php if($sf_user->hasFlash('success')):?>
    <?php include_partial('global/msg', array('class'=>'success', 'msg'=>$sf_user->getFlash('success'))); ?>
<?php endif;?>

<div class="articles">
	<?php include_partial('global/articles', array('articulos' => $articulos)) ?>
</div>

<div class="categories">
	<?php include_partial('site/tags', array('tags' => $tags)) ?>
</div>

<div id="description">
	<?php echo html_entity_decode($site->getDescription()) ?>
</div>

<?php
// include_partial('global/news')
?>
